package com.jiawa.train.business.enums;

public enum RedisKeyPreEnum {
    CONFIRM_ORDER("LOCK_CONFIRM_ORDER", "购票锁"),
    SK_TOKEN_YDZ_QUERY_COUNTER("LOCK_SK_TOKEN_YDZ_COUNTER", "一等座令牌查询数"),
    SK_TOKEN_EDZ_QUERY_COUNTER("LOCK_SK_TOKEN_EDZ_COUNTER", "二等座令牌查询数"),
    SK_TOKEN_YDZ_COUNT("SK_YDZ_TOKEN_COUNT", "一等座令牌数"),
    SK_TOKEN_EDZ_COUNT("SK_EDZ_TOKEN_COUNT", "二等座令牌数"),
    USER_SK_TOKEN("LOCK_USER_SK_TOKEN", "用户锁"),
    RESOURCE_SK_TOKEN("LOCK_RESOURCE_SK_TOKEN", "资源锁"),;

    private final String code;
    private final String desc;

    RedisKeyPreEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
